<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="MvcContrib.FluentHtml.ModelViewPage<Universum.Views.Classes.ClassesEditOrCreateContentViewModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Universum - Class content
</asp:Content>
<asp:Content ContentPlaceHolderID="Breadcrumbs" ID="BreadcrumbsContent" runat="server">
	<%=Html.Breadcrumb().Home().Append<ClassesController>(c=>c.Index(),"Your classes").AppendText( Model.Class.Name ?? "Class content").End() %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="span-22">

    <h2>Class contents</h2>
    <p>
    <% if(Html.IsOwnerLoggedIn(Model.Class.Owner)){ %>
		This is the place where you will 
		<ul class="question-menu">
			<li>
			<%=Html.UserActionLink<ClassesController>(c => c.CreatePageGroup(Model.Class.ID), "Create new chapters")
				 %>
			</li>
			<li>
			<%=Html.UserActionLink<ClassesController>(c=>c.CreatePageArticle(Model.Class.ID),"Add new articles")
				 %>
			</li>
			<li>
			<%=Html.UserActionLink<ClassesController>(c=>c.CreatePageWork(Model.Class.ID),"Create lab work") %>
			</li>
		</ul>
				<%} %>
    </p>
   <div class="node-groups span-22">
	<%
		Html.RenderPartial("_PageNodeGroup", Model.Root.Nodes);
		
			
	%>
   </div>
</div>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptPlaceHolder" runat="server">
<%=Html.ScriptInclude("~/content/scripts/jqueryui.js") %>
<script type="text/javascript" language="javascript">
	/*$(function() {
	$("ul.moveable").sortable({
			connectWith: 'ul.un-moveable',
			handle: 'li'
		});
		
		
	});*/
</script>
</asp:Content>
